package HomeWork.Chapter04;
import java.util.Scanner;
/**
 * Enjoy programming!!!
 * Time: 2021/12/2 -  15:01
 */
public class Palindrome {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String str = in.nextLine();
        boolean flag = true;

        char[] char1 = str.toCharArray();
        char[] char2 = new char[char1.length];

        for (int i = 0; i < char1.length; i++){
            char2[i] = char1[char1.length - 1 - i];
        }
        String str2 = String.valueOf(char2);

        if(!str2.equals(str)){
            flag = false;
        }
        if (flag){
            System.out.printf("%s是回文",str);
        }
        else{
            System.out.printf("%s不是回文",str);
        }
    }
}
